# -*- coding: utf-8 -*-
import pygame


pygame.init()
width, height = 480, 480
screen = pygame.display.set_mode((width, height))  
black, red, blue, white = (0,0,0), (255,0,0), (0,0,255), (255,255,255)

def draw_game():
        pygame.draw.rect(screen, white, (0, 0, width, height))

        pygame.draw.line(screen, black, (160, 0), (160, 480), 5)
        pygame.draw.line(screen, black, (320, 0), (320, 480), 5)
        pygame.draw.line(screen, black, (0, 160), (480, 160), 5)
        pygame.draw.line(screen, black, (0, 320), (480, 320), 5) 
while True:
          
        event = pygame.event.wait()

        if event.type == pygame.MOUSEBUTTONDOWN:
                x, y = pygame.mouse.get_pos()
                pro = (x,y)
                print pro
        if event.type == pygame.QUIT:
                    pygame.quit()
                    exit(0)
                    








        draw_game()

        pygame.display.flip()



